var http=require('http');
var url=require('url');
var util=require('util');
function Start(route){
  http.createServer(function(request,response){
     response.writeHead(200, {"Content-Type": "text/plain"});

     var pathname=url.parse(request.url).path;
     route(pathname);
     console.log('route='+pathname);
     response.write("------------------------------");
     console.log(util.inspect(url.parse(request.url)));
     response.end();

  }).listen(8888);
  console.log('url:127.0.0.1:8888');
}
exports.Start=Start;
